<?php
require_once("../../resources/commons.php");

SessionManager::getInstance()->checkSession();
$l_userId=SessionManager::getInstance()->getCurrentLoggedUserId();

displayTop("Expenses management home",null,null);
?>
<p>Manage you expenses.</p>
<table cellspacing="10">
<tr>
	<td><img src="../../resources/images/euro.png"/></td>
	<td><b>Expenses management</b>
	<p>
	Add/remove expenses.<br/>
	Keep track of your budget.
	</p>
	</td>
	<td align="right" style="padding-left: 20px">
		<font size="30"><?=Expense::getTotalExpensesForUser($l_userId); ?> Euros</font>
	</td>
</tr>
</table>
<?php
displayBottom();
?>